package com.common.utils;

public class Constants {
    /**
     *微信公众号信息
     */
    public static final String APP_ID = "wx4ef38b35c1e6c97f";
    public static final String APP_SECRET = "894c0657873b6b4da07da0a08e0b7c8a";
    public static final String USER = "App";
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";


    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static final String UNLOCK_IMAGE_KEY = "unlock_image_key:";

    /**
     * 验证码 redis key
     */
    public static final String UNLOCK_LOGIN_KEY = "unlock_login_key:";


    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";


    /**
     * 令牌
     */
    public static final String TOKEN = "token";
    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";
    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";
    /**
     * 短信验证码 redis key
     */
    public static final String SMS_CODE_KEY = "sms_code:";
    /**
     * 邮箱验证码 redis key
     */
    public static final String EMAIL_CODE_KEY = "email_code:";
    /**
     * 用户鉴权的 redis key
     */
    public static final String USER_KEY = "user_key:";
    /**
     * 终端管理的 redis key
     */
    public static final String TERMINAL_MANAGER_KEY = "terminal_manager_key:";

    /**
     *  指纹ID前缀
     * */
    public static final String FINGERPRINT_PREFIX = "dc";

    public static final long FINGERPRINT_LENGTH = 34;

    public static final String FINGERPRINT_LOGIN_FREQUENCY_PREFIX = "LoginFrequency:";

    public static final String DEFAULT_FINGERPRINT = "zr98cb01b24e89c7f22934a56b052aa2dc";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";


    public static final long SECOND_MILLIS = 1000;

    public static final long MINUTE_MILLIS = 60 * SECOND_MILLIS;

    public static final long HOUR_MILLIS = 60 * MINUTE_MILLIS;


    public static final int VARCHAR_LENGTH_16 =16;
    public static final int VARCHAR_LENGTH_50 =50;
    public static final int VARCHAR_LENGTH_128 =128;
    public static final int VARCHAR_LENGTH_255 =255;
    public static final int VARCHAR_LENGTH_512 =512;
    public static final int VARCHAR_LENGTH_1024 =1024;
    public static final int VARCHAR_LENGTH_2048 =2048;

    /**
     * SYS_USER中用户类型
     */
    public static class SysUserUserType{
        public static final int TYPE_管理员 = 1;
        public static final int TYPE_TBOX生产厂家 = 2;
        public static final int TYPE_车间生产 = 3;
        public static final int TYPE_厂家配置 = 4;
        public static final int TYPE_播种机查看权限 = 5;//农机院播种机查询
        public static final int TYPE_播种机生产厂家 = 6;
        public static final int TYPE_播种机经销商 = 7;
        public static final int TYPE_TBOX经销商 = 8;
        public static final int TYPE_安卓版生产厂商 = 9;
        public static final int TYPE_公司业务员 = 10;
        public static final int TYPE_TBOX生产厂家2 = 11;
    }

    /**
     * 设备类型
     */
    public static class DeviceType{
        public static final int TYPE_TBOX = 1;
        public static final int TYPE_安卓版 = 2;
        public static final int TYPE_播种机 = 3;
    }
    /**
     *订单类型
     */
    public static class OrderType{
        public  static  final  int TYPE_指定单 = 1;
        public  static  final  int TYPE_随机单 = 2;
        public  static  final  int TYPE_打赏单 = 3;
    }
    /**
     *订单的状态
     */
    public static class  OrderStatus{
        public static final int STATUS_未付款 =0;
        public static final int STATUS_待接单 =1;
        public static final int STATUS_待服务 =2;
        public static final int STATUS_服务中 =3;
        public static final int STATUS_已完成 =4;
        public static final int STATUS_已取消 =5;
    }
    /**
     * 随机单状态
     */
    public static class OrderBlindBoxInfoStatus{
        public static final int STATUS_未接单 =0;
        public static final int STATUS_已接单 =1;
    }
    /**
     * 店员状态
     */
    public static class ClerkStatus{
        public static final int STATUS_审核未通过 = -1;
        public static final int STATUS_审核中 = 0;
        public static final int STATUS_审核通过 = 1;
    }

    /**
     * 充值订单状态
     */
    public static class OrderRechargeStatus{
        public static final int STATUS_支付失败 = -1;
        public static final int STATUS_未支付 = 0;
        public static final int STATUS_支付成功 = 1;
    }

    /**
     * 充值订单支付类型
     */
    public static class  RechargeOrderPayType{
        public static final int TYPE_微信支付 =1;
        public static final int TYPE_后台充值 =2;
    }

    /**
     * 公众号模板消息编号
     */
    public static class WxTemplateCode{
        public static final String CODE_订单完成通知 = "BhBDTuZ7vfCHpZDJzinzcT-4nuZXNKxS2WcBc8xM8is";
        public static final String CODE_接单成功通知	 = "LngcTBSkCbdU3DbW68Stf1FRX8WB7wXI1ayh6y2E0pU";
        public static final String CODE_退款申请审核通知 = "P2wRweZMF8hz7dYC9_TuX3CGOntlrONYdnKBQGGXO-A";
        public static final String CODE_订单支付成功通知 = "Q5hobgYv9-TIOT8WCdZ_GpobK9t0Js1cVZDGXTVcIq4";
        public static final String CODE_审核结果通知 = "Tkg8T0hTbhBvK93G1loFuEy9TfvVmA1WUmAAFfLbPUo";
        public static final String CODE_充值成功提醒 = "bmInzvCU1bbRlh0xt-dfCzCZYrnbYqvDMEQI9U6ZIoM";
        public static final String CODE_新订单提醒 = "oWKKXDzgF5LRWTLlVHoZwzqgEgwhBMBTvHLctCMmPHA";
        public static final String CODE_申请审核通知 = "xGZg4mBbbhSs7U0Lj3FUlzX_WkotBu3cQArAOuOJW68";
    }
}
